tools/hotplug/Linux: don't needlessly use non-standard features in vif-{bridge,route}
authorJan Beulich <jbeulich@suse.com>
Wed, 2 Sep 2020 06:09:28 +0000 (08:09 +0200)
committerWei Liu <wl@xen.org>
Mon, 7 Sep 2020 14:28:59 +0000 (14:28 +0000)
commitb11910082d90bb1597f6679524eb726a33306672
tree9c5cbd968c782d4e6d10ef2ad7a94d209ab47b64
parent71039ed743a3fbf7b58815138d667913a5742e6f
tools/hotplug/Linux: don't needlessly use non-standard features in vif-{bridge,route}

We're not after any "fall-through" behavior here. Replace the constructs
with ones understood by all conforming shells, including older bash
(problem observed with 3.1.51(1)).

Fixes: b51715f02bf9 ("tools/hotplug/Linux: remove code duplication in vif-bridge")
Fixes: 3683290fc0b0 ("tools/hotplug: only attempt to call 'ip route' if there is valid command")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Wei Liu <wl@xen.org>
tools/hotplug/Linux/vif-bridge
tools/hotplug/Linux/vif-route